   var dtime = 1000;
        var acreload = true;
        var acminheight = 100000;
        var acmaxheight = 0;
        var acwork = true; 
    $(document).ready(function(){
            togglers = jQuery('h3.toggler');
            togglers.corner("8px");
            acelements = jQuery('div.element');
            acelements.each(function(index, element) {
                var tgeheight = jQuery(element).height();
                if(tgeheight > acmaxheight) {
                    acmaxheight = tgeheight;
                }
                if(tgeheight < acminheight) {
                    acminheight = tgeheight;
                }
            });
            //alert("min: "+acminheight+"; max: "+acmaxheight);
            //create our Accordion instance
            var myAccordion = new Accordion($('accordion'), 'h3.toggler', 'div.element', {
                opacity: false,
                /*, onActive: function(toggler, element){
                        toggler.setStyle('text-decoration', 'underline');
                },
                onBackground: function(toggler, element){
                        toggler.setStyle('text-decoration', 'none');
                }*/
                onComplete: function(){
                    if(acwork) {
                        this.display.delay(dtime, this, (this.previous + 1) % this.togglers.length);
                    }
                    if((this.previous + 1) % this.togglers.length == 0) {
                        acwork = false;
                    }
                    //jQuery('div.accwrap').height((acmaxheight-cuheight));  	
                }
            });
    });